package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.AdminRole;

import java.util.List;

public interface AdminRoleService {
    void add(AdminRole adminRole);

    void update(AdminRole adminRole);

    void delete(Integer id);

    AdminRole findById(Integer id);

    List<AdminRole> findAll();

    Page<AdminRole> search(String search, int page, int size);
    //根据adminId删除
    void deleteByAdminId(Integer adminId);
    //根据roleId删除
    void deleteByRoleId(Integer roleId);
}
